import {Route, Routes} from 'react-router-dom';
import Navigation from '@/components/Navigation'; 
import Footer from '@/components/Footer';
import Knowledge from '../Knowledge';
import HomePage from './homePage';

export default function Home() {
  return (
    <div className="pc-layout">
        <Navigation />
        <Routes>
            <Route path="knowledge" element={<Knowledge />} errorElement={<div>加载知识页面出错</div>} />
            <Route path="/" element={<HomePage />} />
            <Route path="*" element={<div>404 页面不存在</div>} />
        </Routes>
        <Footer />
    </div>
  );
}
